package errors

import (
	"fmt"
)

// ErrOpenDevcontainerTimeout 阻塞式等待 DevContainer 超时
type ErrOpenDevcontainerTimeout struct {
	Name           string
	Namespace      string
	TimeoutSeconds int64
}

func (err ErrOpenDevcontainerTimeout) Error() string {
	return fmt.Sprintf("Failed to open DevContainer '%s' in namespace '%s': waiting timeout limit of %d seconds has been exceeded.",
		err.Name, err.Namespace, err.TimeoutSeconds,
	)
}
